package com.steel.yfmall.cloud.assistant.goods.impl;

import com.steel.yfmall.cloud.assistant.goods.FrameworkContractGoodsInfoService;
import com.steel.yfmall.cloud.assistant.goods.mapper.FrameworkContractGoodsInfoMapper;
import com.steel.yfmall.cloud.assistant.po.goods.FrameworkContractGoodsInfo;
import com.steel.yfmall.cloud.assistant.po.goods.FrameworkContractGoodsInfoExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FrameworkContractGoodsInfoServiceImpl implements FrameworkContractGoodsInfoService {
    @Override
    public List<FrameworkContractGoodsInfo> selectByPrimaryKey(FrameworkContractGoodsInfoExample example) {
        return goodsInfoMapper.selectByExample(example);
    }

    @Override
    public int insert(FrameworkContractGoodsInfo info) {
        return goodsInfoMapper.insertSelective(info);
    }

    @Override
    public int update(FrameworkContractGoodsInfo info) {
        return goodsInfoMapper.updateByPrimaryKey(info);
    }

    @Override
    public int delete(FrameworkContractGoodsInfoExample example) {
        return goodsInfoMapper.deleteByExample(example);
    }

    @Resource
    private FrameworkContractGoodsInfoMapper goodsInfoMapper;
}
